package main

import (
	"fmt"
	"time"
)

func main() {
	ticker := time.NewTicker(1 * time.Second)

	i := 0

	for ; i < 5; i++ {
		if i > 5 {
			break
		}
		<-ticker.C
		fmt.Println(" i = ", i)
	}
}
